<fieldset class="layui-elem-field">
    <legend>租房补贴申报信息</legend>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">申报档次<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                    <layui:simpleDictSelect style='layui-input-inline' type="declarationGrade"
                                            id="declarationGrade" name="declarationGrade" lay-filter="declareYear"
                                            layVerify="required" value="${renting.declarationGrade}"/>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">可申报月数<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                    <select name="numberDeclarations" id="numberDeclarations" lay-verify="required" lay-filter="declareYear1" >
                        <option value="">请选择月份</option>
                        <!--#
                               for(item in companies){
                               -->
                             <!--#
                                 if(item.key==renting.numberDeclarations){
                                 -->
                            <option value="${item.key}" selected="selected">${item.value}</option>
                            <!--# }-->
                            <!--#
                                   else{
                                        -->
                            <option value="${item.key}" >${item.value}</option>
                            <!--# }-->
                        <!--# }-->
                    </select>
                    <!--<input type="text" id="numberDeclarations" name="numberDeclarations" lay-verify="required"  value="${renting.numberDeclarations}"   class="layui-input" >-->
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">合计金额<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                    <input type="text" id="totalAmount" name="totalAmount"  value="${renting.totalAmount}" lay-verify="required"  class="layui-input input-readonly" >
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">申报人类别<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                    <layui:simpleDictSelect style='layui-input-inline' type="declarationCategory"
                                            id="declarationCategory" name="declarationCategory"
                                            value="${renting.declarationCategory}"  layVerify="required" />
                    </div>
                </div>
            </div>
        </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">专业技术资格名称</label>
                <div class="layui-input-inline">
                    <input type="text" id="technicalQualification" name="technicalQualification" value="${renting.technicalQualification}"   class="layui-input" >
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">专业等级</label>
                <div class="layui-input-inline">
                    <input type="text" id="professionalGrade" name="professionalGrade" value="${renting.professionalGrade}"   class="layui-input" >
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">职业技能资格名称</label>
                <div class="layui-input-inline">
                    <input type="text" id="vocationalQualification" name="vocationalQualification"  value="${renting.vocationalQualification}"   class="layui-input" >
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">职业等级</label>
                <div class="layui-input-inline">
                    <input type="text" id="vocationalGrade" name="vocationalGrade"  value="${renting.vocationalGrade}"  class="layui-input" >
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">在申报企业网上就业登记备案开始日期<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                    <input type="text"  name="startDate"  class="layui-input input-date" value="${renting.startDate,"yyyy-MM-dd"}" lay-verify="required">
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">在申报企业网上就业登记备案结束日期<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                    <input type="text"  id="endDate" name="endDate"  class="layui-input input-date" value="${renting.endDate,"yyyy-MM-dd"}" lay-verify="required">
                </div>
                <div class="layui-input-inline">
                    <input type="button" id="endDate1" value="无固定期限">
                </div>
            </div>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">特殊情况说明(最多100汉字)</label>
                <div class="layui-input-inline">
                    <textarea id="specialInstructions" name="specialInstructions"   class="layui-textarea" style="width: 740px" maxlength="200">${renting.specialInstructions}</textarea>
                </div>
            </div>
        </div>
    </div>
</fieldset>
<fieldset class="layui-elem-field">
    <legend>已婚申报人的配偶、未成年子女信息&nbsp;&nbsp;<input type="button" class="layui-btn" id="addRowClick" value="添加" onclick="addRelatives(${renting.id})"></legend>
    <table  class="layui-table" lay-even lay-skin="nob">
        <tr>
            <td>姓名</td>
            <td>与申报人的关系</td>
            <td>身份证类别</td>
            <td>身份证号码</td>
            <td>操作</td>
        </tr>
    <!--# for(item in relatives){  -->
        <!--#
               if(item.relationship=="0"){
                -->
        <tr>
            <td>${item.relativesName}</td>
            <td>${item.relationshipName}</td>
            <td>${item.relativesIdTypeName}</td>
            <td>${item.relativesIdNumber}</td>
            <td>
                <div class="layui-btn-group">
                <button  type="button" class="layui-btn layui-btn-sm" onclick="addRelatives(${renting.id})">
                    <i class="layui-icon">&#xe654;</i>
                </button>
                <button type="button" class="layui-btn layui-btn-sm" onclick="updateRelatives(${item.id})">
                    <i class="layui-icon">&#xe642;</i>
                </button>
                <button type="button" class="layui-btn layui-btn-sm layui-btn-disabled">
                    <i class="layui-icon">&#xe640;</i>
                </button>
            </div>
            </td>
        </tr>
        <!--# }-->
        <!--#
               if(item.relationship=="1"){
         -->
    <tr>
        <td>${item.relativesName}</td>
        <td>${item.relationshipName}</td>
        <td>${item.relativesIdTypeName}</td>
        <td>${item.relativesIdNumber}</td>
        <td>
            <div class="layui-btn-group">
                <button  type="button" class="layui-btn layui-btn-sm" onclick="addRelatives(${renting.id})">
                    <i class="layui-icon">&#xe654;</i>
                </button>
                <button type="button" class="layui-btn layui-btn-sm" onclick="updateRelatives(${item.id})">
                    <i class="layui-icon">&#xe642;</i>
                </button>
                <button class="layui-btn layui-btn-sm" onclick="deleteRelatives(${item.id})">
                    <i class="layui-icon">&#xe640;</i>
                </button>
            </div>
        </td>
    </tr>
        <!--# }-->
    <!--# }-->
    </table>
</fieldset>

<fieldset class="layui-elem-field">
    <legend>材料信息</legend>
    <span style="color: red;margin-left: 30px;font-size: 18px">支持文件格式为：pdf,jpg,png,gif，单个文件大小不超过20M。带*号标识的对应资料必须上传，其它资料不作要求。上传文件内容请确保真实清晰、有效，不能有旋转。上传后请查看预览，正确无误后再申报提交。</span>
    <div class="layui-row">
        <label class="layui-form-label file-upload">身份证件<span style="color: red">*</span></label>
        <layui:attachment name="idfile" batchFileUUID="${renting.idfile}" isNew="false" bizType="User"/>
    </div>
    <div class="layui-row">
        <label class="layui-form-label file-upload">银行卡材料信息<span style="color: red">*</span></label>
        <layui:attachment name="banknumber" batchFileUUID="${renting.banknumber}" isNew="false" bizType="User"/>
    </div>
    <div class="layui-row">
        <label class="layui-form-label file-upload">租房合同	<!--<span style="color: red">*</span>--></label>
        <layui:attachment name="rentingHouse" batchFileUUID="${renting.rentingHouse}" isNew="false" bizType="User"/>
    </div>
    <div class="layui-row">
        <label class="layui-form-label file-upload">相关证书<span style="color: red">*</span></label>
        <layui:attachment name="qualificationCertificate" batchFileUUID="${renting.qualificationCertificate}" isNew="false" bizType="User"/>
    </div>
    <div class="layui-row">
        <label class="layui-form-label file-upload">劳动合同书或劳动合同协议</label>
        <layui:attachment name="laborContract" batchFileUUID="${renting.laborContract}" isNew="false" bizType="User"/>
    </div>
</fieldset>

<input type="hidden"  name="userId"  value="${renting.userId}" >
<input type="hidden"  name="companyId"  value="${renting.companyId}" >
<input type="hidden"  name="relativesId"  value="${renting.relativesId}" >
<input type="hidden"  name="businessState"  value="${renting.businessState}" >
<input type="hidden"  name="businessStateCode"  value="${renting.businessStateCode}" >
<input type="hidden"  name="processUserName"  value="${renting.processUserName}" >
<input type="hidden"  name="processUserId"  value="${renting.processUserId}" >
<input type="hidden"  name="handlingSuggestion"  value="" >
<input type="hidden"  name="processResult"  value="${renting.processResult}" >
<input type="hidden"  name="year"  value="${renting.year}" >
<input type="hidden" name="roleName" value=${renting.roleName} >
<!-- 业务对象须有hidden字段，保存delFlag和version字段-->
<input type="hidden" name="delFlag" value=${renting.delFlag} />
<input type="hidden" name="id" value=${renting.id} />